package ca.michaelmaguire.server.mobiledownload.server;

public interface HeaderConstants {

	static final String PREFIX = "x-md-";

	static final String NAME_APP = PREFIX + "app";
	static final String NAME_USER = PREFIX + "user";
	static final String NAME_SITE_BASE_URL = PREFIX + "sitebaseurl";
	static final String NAME_SECONDARY_APP_CONTENTS = "secondary-appcontents";

	static final String JAD_MIME_TYPE = "text/vnd.sun.j2me.app-descriptor";
	static final String JAR_MIME_TYPE = "application/java-archive";

	static final String NAME_MIDLET_JAR_URL = "MIDlet-Jar-URL";

	/**
	 * "In order to be fully portable, the JAD file should be encoded using
	 * ISO-8859-1, because all MIDP implementations are required to support this
	 * character encoding."
	 * http://onjava.com/pub/a/onjava/excerpt/j2menut_3/index2.html?page=3
	 */
	static final String JAD_CHARACTER_ENCODING_ISO_8859_1 = "ISO-8859-1";

	static final String NAME_USER_AGENT = "user-agent";
	static final String NAME_DEVICE_USER_AGENT = "user-agent";
	static final String NAME_ORIGINAL_USER_AGENT = "user-agent";

	static final String REFERER = "referer"; // [sic]

}
